package com.diadraw.extensions.mail
{
	import flash.events.Event;
	
	/**
	 * @author Piotr Kościerzyński, piotr@flashsimulations.com
	 * www.flashsimulations.com
	 * www.randori.pl
	 * 
	 * */
	
	
	public class MailExtensionEvent extends Event
	{
		public static const MAIL_COMPOSER_EVENT : String = "MAIL_COMPOSER_EVENT";
		
		public static const MAIL_RESULT_CANCELED      : String = "MAIL_CANCELED";
		public static const MAIL_RESULT_SAVED 	      : String = "MAIL_SAVED";
		public static const MAIL_RESULT_SENT          : String = "MAIL_SENT";
		public static const MAIL_RESULT_FAILED        : String = "MAIL_FAILED";
		public static const MAIL_RESULT_UNKNOWN       : String = "MAIL_UNKNOWN";
		
		
		public static const WILL_SHOW_MAIL_COMPOSER       	  : String = "WILL_SHOW_MAIL_COMPOSER";
		public static const WILL_HIDE_MAIL_COMPOSER       	  : String = "WILL_HIDE_MAIL_COMPOSER";
		public static const MAIL_COMPOSER_DISMISSED			  : String = "MAIL_COMPOSER_DISMISSED";
		public static const MAIL_COMPOSER_NOT_AVAILABLE       : String = "MAIL_COMPOSER_NOT_AVAILABLE";
		
		
		public function MailExtensionEvent(
			type : String, 
			resultType : String = '', 
			bubbles : Boolean = false, 
			cancelable : Boolean = false )
		{
			super( type, bubbles, cancelable );
			m_composeResult = resultType;
		}

		
		public function get composeResult():String
		{
			return m_composeResult;
		}
		
		
		private var m_composeResult : String = '';
	}
}